package com.futureweaver.service.impl;

import com.futureweaver.domain.Department;
import com.futureweaver.domain.Employee;
import com.futureweaver.mapper.DepartmentMapper;
import com.futureweaver.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentServiceImpl implements DepartmentService {
    @Autowired
    private DepartmentMapper mapper;

    @Override
    public List<Department> queryAll() {
        return mapper.queryAll();
    }
}
